package org.edu.modules.oa.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.edu.modules.oa.entity.UserEntity;
import org.edu.modules.oa.entity.VeUserEntity;

import java.util.List;

/**
 * @Author: 陈炜凡
 * @Description: TODO
 * @DateTime: 2021/7/31 8:59
 */
public interface XoaComminUserMapper extends BaseMapper<UserEntity> {
    String selectById(@Param("userId")String userId);

    Boolean insertUser(@Param("userId")String userId,@Param("userName")String userName);

    Boolean updateUser(@Param("userId")String userId,@Param("userName")String userName);

    String selectAppUserById(@Param("userId")String userId);

    Boolean insertAppUser(@Param("userId")String userId);

    Boolean updateAppUser(@Param("userId")String userId);

    Integer selectExtUserById(@Param("userId")String userId);

    Boolean insertExtUser(@Param("userId")String userId,@Param("userName")String userName);

    Boolean updateExtUser(@Param("userId")String userId,@Param("userName")String userName);

    Boolean synchronizeUserById(@Param("userId")String userId,@Param("deptId") Integer deptId);
}
